﻿@model Inovout.Cloud.Applications.Security.Models.BrowserApplicationCredential
<div class="clientId-Dialog">
    @using (Html.BeginForm("Save", "BrowserApplicationCredential"))
    { 
        @*@Html.AntiForgeryToken()*@
        @Html.ValidationSummary(true)
        <input type="hidden" value="@ViewBag.ApplicationUser.Id" name="ApplicationUser.Id" />
        <div class="clientID-Title">
            <span>Create a browser key and configure allowed referers</span>
        </div>
        <div class="serverapp-des">
            <div>This key can be deployed in your clients' applications.</div>
            <div>API requests are sent directly to Google from your clients' browsers.</div>
        </div>
        <div class="serverapp-address">
            <div>Accept requests from these HTTP referers (web sites) </div>
            <span>One URL or pattern per line. Example: *.example.com/* </span>
        </div>
        <div class="serverapp-ip">
            @Html.TextAreaFor(model => model.Referers, new Dictionary<string, object>() { { "class", "w-1" }, { "style", "height:5em;" } })
        </div>
        <div class="project-create-buttons">
            <input type="submit" id="credentialSubmit" value="创建" />
        </div>

    }
</div>
